<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/notice.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 已发布公告管理 | <font color=green><a href="__URL__/history_notice">【已发公告通知】</a></font><font color=green><a href="__URL__/add_notice">【创建公告通知】</a></font><font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div>
   <div class="module_public_main">
      <table>
       <form action="__URL__/batch_del_notice" method="post">
        <tr>
         <td align="center">编号</td>
         <td align="center">公告标题</td>
         <td align="center">发布时间</td>
         <td align="center">所属部门</td>
         <td align="center">公告类型</td>
         <td align="center">操作</td>
         <td align="center"><a href="#" id="all_check">全选/<a href="#" id="no_check">全不选</a></td>
        </tr>
        <?php if(is_array($n_info)): $k = 0; $__LIST__ = $n_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
        <td align="center"><?php echo ($k); ?></td>
         <td align="left"><?php echo (substr($v["n_title"],0,20)); ?>...</td>
         <td align="center"><?php echo (date("Y-m-d H:m",$v["n_addtime"])); ?></td>
         <td align="center"><?php echo ($v["n_department"]); ?></td>
         <?php if($v["n_target"] == '1'): ?><td align="center">本部门所有员工</td>
         <?php else: ?>
         <td align="center">公司内所有员工</td><?php endif; ?>
         <td align="center">
           <a href="__URL__/edit_notice/n_id/<?php echo ($v["n_id"]); ?>">修改公告</a> | 
           <a href="__URL__/del_notice/n_id/<?php echo ($v["n_id"]); ?>">删除公告</a>
         </td>
         <td align="center"><input type="checkbox" class="check_is" value="<?php echo ($v["n_id"]); ?>" name="check_is[]"/></td>
         </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <tr>
              <td colspan="6" style="text-align:right"><?php echo ($fpage); ?></td>
              <td align="center"><input type="submit" value="删除选中项" class="_button"/></td>
           </tr> 
           </form>
      </table>
   </div>
  </div>
</body>
</html>